<template>
  <div class="header" :style="{ backgroundColor: $store.state.color }">
    <h2></h2>
    <h2>学习记事本</h2>
    <h2 @click.stop="isShow">三</h2>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  setup(props, { emit }) {
    function isShow() {
      emit("isShow");
    }

    return {
      isShow,
    };
  },
  components: {},
};
</script>

<style lang="scss" scoped>
.header {
  width: 100%;
  height: 60px;
  background-color: pink;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #fff;
}
</style>
